#include "CBasetest.h"
#include <qdebug.h>

#define STRING_CONVERT(x) _STRING_CONVERT(x)
#define _STRING_CONVERT(x) #x
#define LOCATION __FUNCTION__ "("STRING_CONVERT(__LINE__)")"
#define WORDWARP "\r\n"

CBasetest::CBasetest()
{
	qDebug() << LOCATION <<  WORDWARP;
}

CBasetest::~CBasetest()
{
	qDebug() << LOCATION << WORDWARP;
}



CDerivetest::CDerivetest()
{
	qDebug() << LOCATION << WORDWARP;
}

CDerivetest::~CDerivetest()
{
	qDebug() << LOCATION << WORDWARP;
}

void CDerivetest::ReleaseMyObj()
{
	delete this;
}

CBasetest* GetMyObj()
{
	return new CDerivetest();
}
